/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thesis.haipv.qa.model;

/**
 *
 * @author PHANHAI
 */
public class UserProfile {
    
    private String accountId;
    private String username;
    private String password;
    private String fullname;
    private long createTime;
    private float referenceTrust;
    private float experienceTrust;

    public UserProfile() {
    }
    
    public UserProfile(String accountId, String fullname) {
        this.accountId = accountId;
        this.fullname = fullname;
        this.username = "";
        this.password = "";
        this.createTime = 0;
    }


    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createDate) {
        this.createTime = createDate;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getFullname() {
        if(fullname.isEmpty()) {
            return accountId;
        }
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public float getReferenceTrust() {
        return referenceTrust;
    }

    public void setReferenceTrust(float referenceTrust) {
        this.referenceTrust = referenceTrust;
    }

    public float getExperienceTrust() {
        return experienceTrust;
    }

    public void setExperienceTrust(float experienceTrust) {
        this.experienceTrust = experienceTrust;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    
    @Override
    public String toString() {
        return fullname;
    }
    
}
